<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
header('Content-type: text/html; charset=utf-8');
die(date('Y-m-d', strtotime('next day')));
include 'lib/core/Diff.php';
ini_set('max_execution_time', '3');
$str1 = '-?php
2
class Cache extends Config {

	protected $cfgdir = \'etc/cache/\';

	function __construct($name) {
		parent::__construct($name);
	}

}
?>';
$str2 = '-?php
bbb
2
class Cache extends  Log {
	protected $cfgdir = \'etc/cache/\';



function __construct($name) {
		parent::__construct($name);
	}

        test
}
?>';
$diff = new Diff($str1, $str2);
$res = $diff->graph();
?>
<style>
    ins, del {
        text-decoration: none;
    }
    ins pre{
        background-color: #44ff44;
    }
    del pre {
        background-color: #ff4444;
    }
    pre {
        padding: 0px;
        margin: 0px;
    }
</style>
<?
echo str_replace("", '&nbsp;</pre>', nl2br($res));
?>
